//
//  XXNavigationController.m
//  XX
//
//  Created by lly on 15/5/25.
//  Copyright (c) 2015年 lly. All rights reserved.
//

#import "XXNavigationController.h"

@interface XXNavigationController ()

@end

@implementation XXNavigationController


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        //        self.navigationBar.backgroundColor = [UIColor redColor];
        //        self.navigationBar.translucent = YES;
        self.navigationBar.barTintColor = [UIColor colorWithRed:0.271 green:0.647 blue:0.678 alpha:1.000];
//        self.navigationBar.autoresizingMask = UIViewAutoresizingFlexibleTopMargin;
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
//
//- (void)pop
//{
//    [self popViewControllerAnimated:YES];
//}

//- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
//{
//    [super pushViewController:viewController animated:animated];
//    if(viewController.navigationItem.hidesBackButton)
//        return;
//    if (viewController.navigationItem.leftBarButtonItem== nil && [self.viewControllers count] > 1) {
//        
//        if(self.viewControllers.count > 1)
//        {
//            UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
//            backButton.frame = CGRectMake(0, 0, 52, 48);
//            backButton.backgroundColor = [UIColor clearColor];
//            [backButton setBackgroundImage:[UIImage imageNamed:@"back_up.png"] forState:UIControlStateNormal];
//            [backButton addTarget:self action:@selector(pop) forControlEvents:UIControlEventTouchUpInside];
//            viewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:backButton];
//        }
//    }
//}
/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
 {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */
@end
